/**
* 作者: ibm
* 日期: 2024-12-21 15:33:55
* 备注: 用户特权卡信息
*/
package com.motu.monstercity.server.game.userdata;

import com.motu.vertx.module.utility.toolset.TimeUtils;

public class UserPrivilegeCard extends UserPrivilegeCardModel {
	public UserPrivilegeCard() {
		super();
	}
	public UserPrivilegeCard(long userId, int type) {
		super();
		putUserId(userId);
		putType(type);
	}

	//是否过期
	public boolean isExpired() {
		if (getEndTime() == 0) {
			return false;//永不过期
		}
		return TimeUtils.getCurTime() > getEndTime();
	}
}
